Pinterest interview question

Implement Decision tree; Implement gradient descent;