For counting the previous appearances of character in both the strings
let countChars1 = new Array ( CHAR ) ; countChars1 . fill ( 0 ) ; let countChars2 = new Array ( CHAR ) ; countChars2 . fill ( 0 ) ;