athenahealth Interview Question

Find all triplets whose sum is k in an array