Recursion-convert string to integer

Running correctly on other online ide for the given test case but giving wrong answer on the test case in coding blocks ide.

please share your code