Architech interview question

Reverse a singly linked list in cpp