Rosetta Problems

Find Longest Special Substring That Occurs Thrice I

https://leetcode.com/problems/find-longest-special-substring-that-occurs-thrice-i