Question d’entretien chez J.P. Morgan

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