Create 2 count arrays and initialize all values as 0
let count1 = new Array ( NO_OF_CHARS ) ; let count2 = new Array ( NO_OF_CHARS ) ; for ( let i = 0 ; i < NO_OF_CHARS ; i ++ ) { count1 [ i ] = 0 ; count2 [ i ] = 0 ; } let i ;