Find all pairs of elements in an integer array whose sum is equal to a given number by Example Output