Deloitte Interview Question

how to reverse linked list