結果 : algorithm for stack operations using linked list