Leetcode Window Function Postgresql W3schools