SpanIdea Interview Question

How to reverse linked list?