Domanda di colloquio di Apple

Implement certain basic ML algorithm from scratch in python.