Hey there, I was trying to solve A.Alphacode of this contest. My solution is here I am getting WA on test case 2. The question is pretty straightforward and hence I am not able to determine where my solution is failing. Any help would be appreciated.
If the string is "10" you the answer should be 1 but your code outputs 2
Thank You very much, got the problem.