Pythagorean triplet

my code is still not able to clear out all the test cases.