Using the Huffman code given in the attached image,
(a) encode the string "NEEDLE".
(b) decode the bit string "01111001001110".
Solution also explains the process, following which you can easily handle other string encoding and bit string decoding problems with huffman code tree.