Domanda di colloquio di Tripadvisor

Reverse a singly-linked list given a Class Node with data, and a reference to the next node in the Linked List