push(S,V)
pop(S)
Stack s = emptyStack(); push(s,10); push(s,15); push(s,7); x = pop(s); push(s,12); y = pop(s); // x == 7 && y == 12
Example animation