Slalom interview question

How to reverse a list