Leetcode Sql Window Functions