Previous Greater Element Leetcode Sql Challenges