Doubt in input given in question

why 12345 not be yes as sum= 15 odd and divisible by3

No, There will be two sum values, one as even sum and other as odd sum,
sume= 2 + 4 = 6
sumo = 1 + 3 + 5 =9

So if(sume%4==0 || sumo%3==0) then output will be yes… pls read the question again…

https://ide.codingblocks.com/s/206610 plz find and edit the error

I have edited your code… Try to submit it now…

https://ide.codingblocks.com/s/210280 it is showing tle plz solve

Can you pls tell me the name of question for which you have sent the code…