Reverse An Array In Place Leetcode Javascript 30