For most test cases my solution is correct.But I am not able to understand why for test cases like 67309 8625 my answer is a very large negative number.
In some cases my solution is coming as a very large negative number even though I have done the mod operation?
Sayon send your code link.
https://ide.codingblocks.com/s/232773 check your mistakes, you have to take mod while calculating answer otherwise overflow will occur
oh ok got it .Thanks