結果 : algorithm for traversing a singly linked list