Goldman Sachs interview question

One technical question at the end