Meta interview question

leetcode mids