Goldman Sachs Interview Question

Whats is the solution to OLS