Meta Interview Question

There was two coding questions with the first round