Counting occurrence of each character of current string
for ( int j = 0 ; j < s . get ( i ) . length ( ) ; j ++ ) { a . set ( ( s . get ( i ) . charAt ( j ) - ' a ' ) , a . get ( s . get ( i ) . charAt ( j ) - ' a ' ) + 1 ) ; }