The problem, in one line. Given a string of capital letters and a budget of k edits, where an edit turns any one letter into any other, find the longest unbroken run of one repeated letter you can make. LeetCode 424.
The tell. “Longest unbroken stretch” with a budget of allowed mistakes. A stretch is fixable when its width minus its most common letter is at most k, since everything that is not the common letter is what you must edit.