Pergunta de entrevista da empresa AMD

How would you reverse a list