Amazon interview question

Given an array and a target value, find two numbers whose sum equals to the target value.