Bloomberg Interview Question

Implement Huffman coding with a buffer