Minimum Stack Leetcode Problems Javascript