Variable Size Sliding Window Leetcode Question 50