Remove all characters obtained so far
while ( st < i ) { if ( ( int ) s [ st ] >= 65 && ( int ) s [ st ] <= 90 ) caps [ ( int ) s [ st ] - 65 ] -- ; else small [ ( int ) s [ st ] - 97 ] -- ; st ++ ; } i += 1 ; st = i ; } else { if ( ( int ) s [ i ] >= 65 && ( int ) s [ i ] <= 90 ) caps [ ( int ) s [ i ] - 65 ] ++ ; else small [ ( int ) s [ i ] - 97 ] ++ ;