Delhi even odd problem doubt

what is wrong in this code? testcases are not being passed.