Gainsight Interview Question

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