Leetcode 3104. Find Longest Self-Contained Substring | Hello Interview