Reverse An Array Leetcode Problem