Amazon Interview Question

3sum - find all unique triplets in an array that sum to a given value