Rakuten Interview Question

Find pairs with a given sum in an array.