Uber interview question

Machine learning plus standard algorithm question.