Gainsight interview question

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