Amazon interview question

Polymorphism Inheritance Methods Matrix Binary trees