result to store the sum bits.carry to 0.i and j to traverse arr1 and arr2 from LSB to MSB.carry.result and update carry.result respectively, and set carry to -1.result and set carry to 1.result to get the correct bit order.result.result.