Meta Interview Question

Leetcode 1284 was the question