Pythagorean triplets are triplets that satisfy the condition that such that . Given an unsorted array of unique integers in the text file, how many Pythagorean triplets are there?
As an explicit example, in the array , there are Pythagorean Triplets, namely and .