J.P. Morgan Interview Question

What is polymorphism? How would you solve this problem?