A9.com Interview Question

Implement the k means algorithm