Pinterest interview question

Implement K Nearest Neighbors algorithm in a limited time frame