Question d’entretien chez Urban Company

Write a function to reverse a linked list.