Changed the input type to C str for C++ Huffman coding program