Reverse Array Problem Leetcode Contest Sunday