Amazon interview question

Data structures and algorithms and oops