Sir, I have solved this problem in Java to handle the big Integer in a much easy way. My program is running successfully on online compilers and also showing the correct results of sample test cases but in Hacker Blocks compiler there is a error in compiling.
Sir, Kindly look into this problem