Sum of Big Integers

When I am taking only 1 test case i.e. 2 numbers as input,(and no for loop) I am getting correct output.
But when I am taking multiple test cases then I am getting wrong answer.

Please a little help