Minimum Window Sort Leetcode Problems Python