Leetcode Problem Based On Sliding Window