Capgemini Interview Question

Write polymorphism code any language u prefer