Amazon interview question

Data structures / general problem solving