Getting my answer correct but it's in string format

Just wanted to know if the output needs to be in integer format or getting the answer in string on the console would work.

I tried to convert it into bigInteger for bigger numbers.

Converting into bigInteger is still giving “Wrong answer” in the submission test.

hi @sumitpatil3141_67228965abbfaf85,