Min Stack Problem Leetcode Javascript