American Express interview question

Write a method that reverses a list.