Meta interview question

3 Leetcode medium and 1 hard.