Next Greater Integer Leetcode Python