In: Computer Science
Assume that a minus sign in the input indicates pop the stack and write the return value to standard output, and any other string indicates push the string onto the stack. Further, suppose that the following input is processed:
it was - the best - of times - - it was - the - -
1/ What is written to the standard output?
2/What are the contents (top to bottom) left on the stack?