Traverse the hash array and print characters
for ( let i = MAX_CHAR - 1 ; i >= 0 ; i -- ) { for ( let j = 0 ; j < charCount [ i ] ; j ++ ) { document . write ( String . fromCharCode ( ' ' . charCodeAt ( 0 ) + i ) ) ; } } }