Apple Interview Question

Implement certain basic ML algorithm from scratch in python.