Tech Mahindra Interview Question

Write a program to Reverse a liked list.