Goldman Sachs interview question

OOPS concepts and basic pointers