How does input and output relate

we need to print the sum of two arrays but array1[0]+array2[0]=1+3=4 however output shows 3 please explain

@hrishikeshjanjal hey refer to this discuss