My code https://ide.codingblocks.com/s/154586
Hacker block link https://hack.codingblocks.com/app/contests/987/p/62
Test cases are not passing
Hi @harshkumar.877587
use if(i!=0 || str[i]!=‘9’)
You can not invert the first digit if its 9.
You were expected to input an integer, not a string.
Hope it helps
Mark resolved if satisfied 