Pergunta de entrevista da empresa X

The coding interview was on a google sheet. The goal was to code K means from scratch, and also explain the logic behind. In the end, they also asked questions about how to make K means scale etc