結果 : define stack write push and pop algorithm