Lonely Integer Hackerrank Solution In C