結果 : push and pop algorithm in stack