Reverse An Array Practice Leetcode