Folio3 interview question

Explain how clustering algorithm works