Goldman Sachs interview question

Data structures and algorithms were on the coding test.