結果 : write push and pop algorithm for implementing stack