Cisco Interview Question

Find a triplet in array adding up to a given value