Mathnasium interview question

Hello my needs are great