Yandex interview question

Theory of testing, solving cases