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