Array target sum pairs

test case errors are there , not able to find such testcases.

@Aug19LPPP0098 Print the results in sorted order.
Consider the test case:
5
5
2
3
4
1
6

Expected Output:
1 and 5
2 and 4

Your Output:
5 and 1
2 and 4