Minimum Length Substrings Leetcode Contest