https://jonathan-ck-chao.medium.com/the-blind-75-leetcode-series-longest-repeating-character-replacement-6824c77d110b