Two Sigma interview question

Encode and decode a huffman tree