Complete reverseArray C++ Solution

I came through a question on LeetCode to complete a reverseArray function. We have an array and we have to return the array reversing all…