Reverse Array Problem Leetcode 7540