If this is a leaf node , then it contains one of the input characters , print the character and its code from arr [ ]
if ( isLeaf ( root ) ) { cout << root -> data << " : ▁ " ; printArr ( arr , top ) ; } }