Maximum Repeating Substring Leetcode Sql