TomTom Interview Question

How does K-means algorithm work