Array-Target Sum Pairs

Cant understand why testcase 1 failing

@Rishabh3699 Please save your code on ide.codingblocks.com and share its link .

@Rishabh3699 Consider test case:
5
5
2
3
4
1
6

Expected output:
1 and 5
2 and 4

Your Output:
1 and 5
2 and 4
3 and 3