結果 : write push and pop algorithm on stack