IBM interview question

polymorphism concept