Yandex interview question

Problems of the Olympiad type for coding