Goldman Sachs interview question

Logical and technical questions