1d Arrays In C Hackerrank Solution