Sliding Window Question Leetcode