Delhi odd /even

sir/maam can you see this code and tell me why its not clearing the test case.

it is mentioned that if the sum of digits which are even is divisible by 4 or sum of digits which are odd in that number is divisible by 3. which means you need to maintain 2 sum odd_sum and even_sum and add even digits in even_sum, odd digits in odd_sum and check the condition
Code