Domanda di colloquio di Prometheus Group

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