Pregunta de entrevista de AMD

How would you reverse a list