Output of arrays- target sum pairs of test case 4 and test case 2

the output of test case 1 is coming same but it is showing wrong output. I downloaded the test cases to see but after entering the input, the output is same as the test case 4. Same case is with test case 2, just the order of numbers is different. the output of test case is 2 and 3 and my output is 3 and 2. Kindly look into it.

@RIDDHI29 hey riddhi the test cases is right this question output have sorted order.