Question d’entretien chez Q Agency

Write a function to reverse a linked list.