[Java] Leetcode 496. Next Greater Element [Stack & Queue #5]