Project Euler Hackerrank Solution For C