Question d’entretien chez Google

Write a function for reversing a linked list