Reverse a linked list


#1

Write a function to reverse a linked list