Amazon interview question

Polymorphism, Inheritance