Scott Logic interview question

General coding and logic questions/puzzles