Uber interview question

Write a basic machine learning classification algorithm.