Pergunta de entrevista da empresa Meta

Please implement K-means clustering from scratch. They did not give anything, such as header or something else. I just coded from nothing, empty coderpad.