Amazon interview question

Solved a complex problem simply?