Maximum Repeating Substring Leetcode Sql Window