3M Interview Question

Write a code for k-means clustering