Question d’entretien chez athenahealth

Find all triplets whose sum is k in an array