Goldman Sachs Interview Question

Pretty straight forward