Morgan Stanley Interview Question

Oops concept and linked list question