Pergunta de entrevista da empresa Faire

Algo Question Involving Tries, Heaps and other data structures.