Question d’entretien chez Citi

How to derive OLS closed-form solution.