2. [5] What is the output of the following stack algorithm? Push (myStack, 'Jack') Push (myStack, Jose') Push (myStack,
Posted: Sun Jul 03, 2022 12:00 pm
2. [5] What is the output of the following stack algorithm? Push (myStack, 'Jack') Push (myStack, Jose') Push (myStack, 'Ali') Push(myStack, 'Mike') Pop (myStack, name) Write name + ", " Pop (myStack, name) Push(myStack, name) Push (myStack, name) Push (myStack, 'Harman') WHILE (NOT IsEmtpy (myStack)) Pop (myStack, name) Write name + END WHILE 1