Squarepoint Capital interview question

Derive formula for optimal OLS linear regression coeffs