Insert characters in the string in increasing order
for ( let i = 0 ; i < MAX ; i ++ ) { let j = 0 ; while ( j < count [ i ] ) { s [ index ++ ] = String . fromCharCode ( i + ' ' . charCodeAt ( ) ) ; j ++ ; } } return s . join ( " " ) ; }