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