Pergunta de entrevista da empresa Cloudera

How would you find three numbers that add to a sum in an array?