Meta interview question

Leetcode medium level problems