Reverse Array Problem Leetcode Contest Todays Gold