Question d’entretien chez Apple

Write a function to reverse a linked list