Next Greater Integer Leetcode Python Solutions