Question d’entretien chez Microsoft

Implement a function to reverse a linked list.