Hexaware Technologies interview question

Oops ,prime no. Reverse a Linked list