Reverse Array Problem Leetcode Interview