Reverse Array Problem Leetcode 7543