Amazon interview question

Solve OLS/ridge regression in numpy - with gradient descent and closed form solution.