Magician Inc interview question

Derive the OLS estimator.