Deloitte interview question

how to reverse linked list