Question d’entretien chez American Express

Write a method that reverses a list.