Reverse Array Problem Leetcode Premium