Adeptia interview question

Reverse the elements of a array.