Reverse Array Problem Leetcode Javascript Roadmap