Add count of subString equal to n - alphaIndex [ i , j ]
rank = rank + ( n - alphaIndex [ i ] [ j ] ) ; } } } List < String > str = new List < String > ( ) ; for ( int i = 0 ; i < alphaIndex [ s [ 0 ] - ' a ' ] . Count ; i ++ ) {