Leetcode Window Function Syntax Sql Replace