Goldman Sachs interview question

Derive the formulas for solving regression coefficients in a simple linear regression model.