結果 : write a function to reverse a singly linked list in java