Tech Mahindra Interview Question

how to reverse a linked list?