Longest Repeating Substring Leetcode Solution 125