Next Greater Integer Leetcode Python Beginner