Question d’entretien chez Informatica

Given a singly linked list, reverse it