Morgan Stanley Interview Question

OOPs concept