Question d’entretien chez Sedin Technologies

Write a function to reverse a linked list.