Morgan Stanley Interview Question

Java inheritance and OOP