Delhi odd even run time error

can you check this code where I am wrong