Meta interview question

Basic algorithmic question like LeetCode .