Pregunta de entrevista de J.P. Morgan

How to implement linear regression on python (from scratch)?