LeetCode
Longest Repeating Character Replacement
Click
here
for an explanation.