Minimum Window Sort Leetcode Python Coding