Leetcode Sql Window Functions Questions