Bug in test case?


#1

Input:
A : [ 4, 7, -4, 2, 2, 2, 3, -5, -3, 9, -4, 9, -7, 7, -1, 9, 9, 4, 1, -4, -2, 3, -3, -5, 4, -7, 7, 9, -4, 4, -8 ]
B : -3

Expected output shows
4 8

Now
A[4] = 2
A[8] = -3

So how A[4] + A[8] = -3?


#2

A[8]=-5 since indices are not zero-based