finding frequency of all the lower case alphabet and storing them in array of integer
for ( let i = 0 ; i < length ; i ++ ) if ( str [ i ] . charCodeAt ( ) >= ' ' . charCodeAt ( ) ) freq [ str [ i ] . charCodeAt ( ) - ' ' . charCodeAt ( ) ] ++ ;