Minimum Length Substrings Leetcode Two