Minimum Length Substrings Leetcode Python Beginner