Amazon interview question

Coding a traditional machine learning classifier.