EY interview question

Write a polymorphism program in any language