https://practice.geeksforgeeks.org/problems/huffman-encoding/0