Amazon Interview Question

basic programing questions like given an array of integers write a function that returns boolean when sum of two number is equal to given number