Variable Size Sliding Window Algorithm Leetcode Contest