Minimum Window Substring Leetcode Solution Python