Rosetta Problems

模拟出入栈游戏

https://www.acwing.com/problem/content/3681