Huffman Coding

Step 1) Create a symbol and probability table for each character
like for ‘C’ it comes once in total 14 characters(including space)…