Amazon interview question

30 min behaviour + 30 min coding