結果 : algorithm to perform push and pop operation in stack