Goldman Sachs interview question

Queue and stacks related question