Samsung Electronics interview question

reverse a single linked-list.