Dynamic Array Ds Hackerrank Solution In C