Node in the tree where data holds the character of the String and cnt holds the frequency
class node { constructor ( ) { this . data = ' ' ; this . cnt = 0 ; this . left = null ; this . right = null ; } } ;