Meta interview question

I was given 2 Easy/Medium LeetCode-esque questions