Variable Size Sliding Window Leetcode Question 238