Dozee interview question

Flow of K means Clustering Algorithm