Leetcode Problem Reverse An Array Practice Question