CME Group Interview Question

find all possible pairs from integer array whose sum is 10. int [] intArray={2,5,7,8,3};