Pregunta de entrevista de Adobe

Whiteboard coding question - k-means algorithm Find errors in the JavaScript