Reverse Array Problem Leetcode 7540142