Pergunta de entrevista da empresa Yandex

Some problems from leetcode with different difficulties