Goldman Sachs Interview Question

I forgot what was on the Hackerrank