S&P Global Interview Question

How to reverse a linked list?