Playing With Characters Hackerrank Solution In C