Leetcode 2982. Find Longest Special Substring That Occurs Thrice II | Hello Interview