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