Josh Software interview question

To reverse the linked list