Fenwick Tree to store the frequencies of 26 alphabets
let BITree = new Array ( 26 ) ; for ( let i = 0 ; i < 26 ; i ++ ) { BITree [ i ] = new Array ( maxn ) ; for ( let j = 0 ; j < maxn ; j ++ ) { BITree [ i ] [ j ] = 0 ; } }