Answer:
3
Step-by-step explanation:
The maximum number of symbols that will be on the stack would be 3. This is because according to the pseudocode every time that a left-facing symbol ( }, ], or ) ) it automatically ends the function or pops the last element in the stack. Therefore, the longest sequence of right-facing symbols would also equal the maximum number of symbols in the stack. In the sequence passed in the question, this would mean that the longest stack would be 3 and include the following sequence {[(