Amazon interview question

Data structures