Amazon interview question

Normal interview phases, nothing too tricky.