Goldman Sachs interview question

Basically it was from collections and data structure.