Previous Greater Element Leetcode