Goldman Sachs interview question

Nothing really unexpected for a quant developer position.