Pregunta de entrevista de Qualcomm

Write code to reverse a linked list.