Variable Size Sliding Window Algorithm Leetcode Python Basic Programs