Leetcode Reverse An Array Using Java