Microsoft interview question

How to revert a linked list