Question d’entretien chez FactSet

An array is given. Find all the pythogorian triplets.