Reverse Array Problem Leetcode Contest Predictor Criterion