TikTok Interview Question

implementing K-means clustering from scratch and handling empty cluster edge cases