Fixed Size Sliding Window Leetcode Question