Question d’entretien chez Goldman Sachs

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