UBS Interview Question

Polymorphism and example