Question d’entretien chez Qualcomm

Write code to reverse a linked list.