Goldman Sachs Interview Question

Question based on resume Question on oops Data structure