Goldman Sachs Interview Question

it was all about a code challenge to run codes.