Java Program Queue Using Stack Leetcode