結果 : write ac function to reverse singly linked list