Just wanted to know if the output needs to be in integer format or getting the answer in string on the console would work.
Getting my answer correct but it's in string format
I tried to convert it into bigInteger for bigger numbers.
Converting into bigInteger is still giving “Wrong answer” in the submission test.