Leetcode Sql Window Functions Explained Javascript