Leetcode Reverse An Array Problems