Architech Interview Question

Reverse a singly linked list in cpp