Reverse Array Problem Leetcode