Cotality interview question

Explain the K-Nearest Neighbors method.