decrease frequency of each character as they are encountered from the ' start ' index until frequency of ' ch ' is greater than ' k '
while ( freq [ ch . charCodeAt ( 0 ) - ' ' . charCodeAt ( 0 ) ] > k ) {