Question d’entretien chez AMD

How would you reverse a list