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