Medium
Given a string s of uppercase English letters and an integer k, you may replace at most k characters with any uppercase letter. Return the length of the longest substring containing a single repeated letter you can obtain.
Input: s = "ABAB", k = 2 Output: 4
Input: s = "AABABBA", k = 1 Output: 4