結果 : implement an algorithm to reverse a linked list