Pergunta de entrevista da empresa Yandex

Programming task included finding optimal complexity of an algorithm and understanding of lists and dictionaries