Nutanix Interview Question

Finding all pythagorean triplets in an array of integers.