Goldman Sachs interview question

data structure and programming