Ramesh & Co. Interview Question

write the linked list code to reverse the nodes.