X interview question

Code KMeans algo from scratch