AMD interview question

How would you reverse a list