Maximum Repeating Substring Leetcode 754