HL Mando interview question

Code k means clustering using any programming language familiar to me from scratch.