Queue Using Two Stacks Leetcode Javascript Question