Given an array, reverse it in place so the last element becomes the first, using only constant extra space.
Example 1
Explanation: Each element swaps with its mirror position: index 0 with 4, index 1 with 3; the middle element stays put.
Example 2
Explanation: With an even length, every element has a distinct mirror partner.
Example 3
Code execution is coming soon.