Amazon interview question

How do you approach the problem you were given