Pregunta de entrevista de Amelia

Was asked to reverse a list and explain logic