結果 : write an algorithm for performing push and pop operation on stack