Pointers In C Hackerrank Solution