Pregunta de entrevista de FactSet

An array is given. Find all the pythogorian triplets.