Pergunta de entrevista da empresa Yandex

DSA Round. Revert some part of linked list