Reverse Array Problem Leetcode Solutions C