Window Function Sql Questions Leetcode