Pregunta de entrevista de FactSet

implement a Huffman tree in the Algorithm part