If there are more than k unique characters in current window , remove from left side
while ( ! isValid ( count , k ) ) { count [ s [ curr_start ] . charCodeAt ( 0 ) - ' ' . charCodeAt ( 0 ) ] -- ; curr_start ++ ; }