Goldman Sachs interview question

Coding, behavioral, problem solving, financial, medium level difficulty