https://github.com/cherryljr/LeetCode/blob/master/Swap%20For%20Longest%20Repeated%20Character%20Substring.java Solution2 fails for test case: Input: "acbaaa" Output: 3 Expected: 4