Window Functions Based Problems Sql Leetcode