AMD Interview Question

How would you reverse a list