Amazon interview question

Implement gradient descent from scratch