Baidu interview question

How would you reverse a singly-linked linked list in C++?