Amazon interview question

Debugging, coding. (All quite limited in time)