Ericsson Interview Question

Given an array, write a function that checks that there are two numbers that add upto to a given number