Meta interview question

JUst random medium leet code