Maximum Repeating Substring Leetcode 150