Question d’entretien chez Citi

Coin toss problem. How to derive OLS closed-form solution.