Meta interview question

Leetcode Easy/Medium