Stores the current number of unique characters and characters occuring atleast K times
let cnt = 0 , count_k = 0 ; while ( end < n ) { if ( cnt <= curr_unique ) { let ind = s [ end ] . charCodeAt ( ) - ' ' . charCodeAt ( ) ;