S&P Global interview question

How to reverse a linked list?