Arrays-Target Sum Pairs

4
2
2
2
2
4

Should this return 2 and 2 as output or something else?

Hi @akshaypkumar007
Since you have to find all pairs whose sum is equal to 4 that is why ans should be 2 and 2 six times.