Meta interview question

Implement part of a machine learning algorithm from scratch.