Meta interview question

Mostly Leetcode medium to hard question