Cisco interview question

Find a triplet in array adding up to a given value