Question d’entretien chez Cognizant

Implement a function to reverse a linked list.