Meta interview question

LeetCode. Check common systems Meta asks.