I’ve tested my code for all type of inputs including the corner cases.
The output is expected to be a very large integer. So I’m printing it as number by number.
Eg. If the correct output is 247(integer number), then my output is 247(every digit is different integer) followed by \n
Can this be the reason I’m getting WA despite getting correct output?