Sony interview question

straight forward