Two Stack Problem Leetcode Javascript Interview