looks school work :D
for a stack you can only push/pop on it.
1st, pop elements, 1 by 1, to create the linkedList, and push the popped elements to a reversed stack.
2nd, pop everything from the reversed stack and push back into original stack.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…