Prometheus Group Interview Question

Using a programming language of your choice, write a function to reverse the order of terms in an array.