Next Greater Integer Leetcode Solutions Cpp