UST Interview Question

Fetch all the pairs which sum up to same number