Longest Repeating Character Replacement

Given a string $s$ and an integer $k$, return the length of the longest substring of $s$ that can be turned into one repeated character by changing at most $k$ characters.

You may change any character in the substring to any other uppercase English letter.

Examples
Input: ["ABAB",2]
Output: 4
Hints

Longest Repeating Character Replacement

Given a string $s$ and an integer $k$, return the length of the longest substring of $s$ that can be turned into one repeated character by changing at most $k$ characters.