Meta interview question

Leetcode coding easy to medium