April cook off div 4

https://www.codechef.com/viewsolution/61899620
I am not able to figure out where my solution is going wrong or which test case am I missing…

1
90

Your output is 92.
digitSum(90) = 9
digitSum(92) = 11
Both have same parity

1 Like

Understood thanks… :slight_smile: