Amazon Interview Question

Return the triplets that sum up to the target value.