結果 : algorithm for push and pop operation in stack with example