Pregunta de entrevista de STMicroelectronics

How to reverse a linked list?