Amazon interview question

Data structures and algorithms and OOP