Pergunta de entrevista da empresa Yandex

Simple algorithms likes swaps, sorts etc.