結果 : write an algorithm to reverse a linked list