Informatica Interview Question

Write a program to reverse the linked list