Yandex interview question

How (university course) algorithm work?