Meta Interview Question

Two leetcode problems (Medium difficulty)