Minimum Stack Leetcode Problems Java