Sliding Window Questions On Leetcode Problems Python