結果 : write algorithm for push and pop operation in stack