Pregunta de entrevista de Apple

Implement certain basic ML algorithm from scratch in python.