Find the correctly arranged data after the stack operations push (1), push (2), pop, push (1), push (2), pop, pop, pop, push (2), pop.
Find the correctly arranged data after the stack operations push (1), push (2), pop, push (1), push (2), pop, pop, pop, push (2), pop.
From the BB Assistant Programmer 2016 – Preliminary exam, question 8 of 15.