Meta interview question

Typical Leetcode easy to medium