Reverse Array Problem Leetcode Javascript Practice Githubman6996