Double stack

AC by leetcode