Pergunta de entrevista da empresa J.P. Morgan

What is polymorphism? How would you solve this problem?