Minimum Window Sort Leetcode Python