My code solution is here CodeChef: Practical coding for everyone
I could see it worked for most of inputs, but with below input it give me negative output, how judging tool show solution worked? is it expected because in problem they said we need to output positive integer
If we give input A and B A=1000 B=1234 then output = -233