Amazon Interview Question

How do you approach the problem you were given