How do you find all pairs of an integer array whose sum is equal to a given number?

Published --