Leetcode Next Greater Element Geeksforgeeks Python