Hexaware Technologies Interview Question

Oops ,prime no. Reverse a Linked list