Question d’entretien chez C3 AI

Write a function that reverses a linked list.