Target sum pairs

one test case is not passed clarify reason.

@Basant-Kumar-1342173592623612
Try this :

Input :
5
2 2 3 4 0
6

Expected Output :
2 and 4
2 and 4

Your Output :
2 and 4
2 and 4
3 and 3