Adeptia Interview Question

Reverse the elements of a array.