Two Sigma Interview Question

Encode and decode a huffman tree