Huffman Coding Problem Leetcode