스택 수열 푼 다음 다시 풀어보기!
https://www.acmicpc.net/problem/23284