Hash array to keep count of characters . Initially count of all charters is initialized to zero .
let charCount = new Array ( MAX_CHAR ) ; for ( let i = 0 ; i < charCount . length ; i ++ ) { charCount [ i ] = 0 ; }