Bloomberg Interview Question

Make a function to determine whether two numbers in an array add up to a target number