Reverse Array Problem Leetcode Two Sum Sorted