Reverse Array Problem Leetcode 150