結果 : algorithm for pop operation in stack with example