Leetcode 1062. Longest Repeating Substring | Hello Interview