Goldman Sachs interview question

They asked array based DSA