Meta interview question

Algorithm interview. similar to leetcode