Question d’entretien chez Qualcomm

Write a function to reverse the linked list