Условие:
You have an empty sequence, and you will be given N queries. Each query is one of these three types:
1 x -Push the element x into the stack.
2 -Delete the element present at the top of the stack.
3 -Print the maximum element in the stack.
\nComplete the getMax function in the editor below.
\ngetMax has the following parameters:
- string operations[n]: operations as strings
\nReturns: - int[]: the answers to each type 3 query
\nInput Format: The first line of input contains an integer, n. The next n lines each contain an above mentioned query.
\nConstraints: 1<=n<=10^5; 1<=x<=10^9; 1<=type<=3. All queries are valid.

