Yandex interview question

Leetcode (easy and medium) and math questions