Mark all allowed characters as true
allowed [ a [ i ] . charCodeAt ( ) - ' ' . charCodeAt ( ) ] = true ; } let freq = new Array ( k ) ; for ( var i = 0 ; i < freq . length ; i ++ ) { freq [ i ] = new Array ( 2 ) ; }