LeetCode
Swap For Longest Repeated Character Substring
Click
here
for an explanation.