for given input
1
10
9 1 5 6 4 5 7 3 10 2
10
should it print (5,5) or (10,10) as both have minimum difference
Doubt regarding certain test case
there is only one 10 in your input how your output contains 2 -10 ? and how 10 + 10 will be equal to 10 ?