Goldman Sachs interview question

I forgot what was on the Hackerrank