Pregunta de entrevista de WSC Sports

Find all triplets in an array that sum to 0.