Pergunta de entrevista da empresa Prometheus Group

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