Expected value seems not correct


#1

Hi,
I have this input
A : [ -5, 1, 4, -7, 10, -7, 0, 7, 3, 0, -2, -5, -3, -6, 4, -7, -8, 0, 4, 9, 4, 1, -8, -6, -6, 0, -9, 5, 3, -9, -5, -9, 6, 3, 8, -10, 1, -2, 2, 1, -9, 2, -3, 9, 9, -10, 0, -9, -2, 7, 0, -4, -3, 1, 6, -3 ]
B : -1

And I get from my method (1,10)
And expected is (1,3).
It seems that A[1] + A[3] is -6 which is not equal to -1.
Can anyone explain this test?


#2

The final answer is 1-based array’s indices as it is given in the example of question. If you consider it 1 based , a[1]=-5,a[3]=4 which adds up to -1.