Leetcode 2730. Find the Longest Semi-Repetitive Substring | Hello Interview