Minimum Length Substrings Leetcode