Given a string s and integer , you can replace at most characters to make any substring contain only one repeating character. Return the length of the longest such substring.
Example: For "AABABBA" and , return . Replace one A in "ABAB" to get "AAAA" or "BBBB".