Amazon interview question

How do you solve the problem by your own