結果 : algorithm to insert a node at the end of singly linked list