Reverse Array Problem Leetcode Two