Pergunta de entrevista da empresa Gainsight

In an array find a triplet that sums to a given value