Nagarro Interview Question

Code to reverse the given array of elements