Meta interview question

Two coding questions for each round.