IBM interview question

Why did you use KNN