Apple Interview Question

Implement kNN’s and binary search.