Frequency array to store the frequency of each of the character of the current string
let num = new Array ( 26 ) ; num . fill ( 0 ) ; for ( let j = 0 ; j < st . length ; j ++ ) num [ st [ j ] . charCodeAt ( ) - ' ' . charCodeAt ( ) ] ++ ; let flag = true ;