Reverse Array Problem Leetcode Contest Rating