Pergunta de entrevista da empresa SAP

Find if the array contains two integers whose sum is equal to the given target value. Then he asked me the same question but now I have to find the pair of three integers whose sum is equal to given target value.