Vikrant Group interview question

reverse the linked list in O(n)