Strings-odd even character

https://hack.codingblocks.com/submission/629681
https://ide.codingblocks.com/#/s/13035
What is wrong in this code , why all test cases are not passed.