ADTRAN Interview Question

Write a function that reverses a list.