Goldman Sachs interview question

Whats is the solution to OLS