Leetcode Window Function Questions