This problem is used in private contest:栈与链表