Array Reversal in C Hackerrank Solution With Explanation