today i started solving a problem in challenges part of string. where i found the question. Ultra-fast-mathematician. I have done this question but it is showing a wrong answer in one of my testcase.
link: https://ide.codingblocks.com/s/56779
I am not able to know where is the problem. its working perfectly on my ide. please tell me if i am skipping any case.