Goldman Sachs interview question

Question based on resume Question on oops Data structure