Leetcode Problem Reverse An Array Using Pointers