NVIDIA Interview Question

Implement K-means clustering in C++.