Ericsson Interview Question

Write code for K-Means algorithm.