Question d’entretien chez Yandex

Some problems from leetcode with different difficulties