Pythagorean Triplet what is wrong with this code 2 test cases fail

@khushipriya681 hey khushi your code is not working for large input
test for this case
99999979
ans = 4999997900000220 4999997900000221
but your ans =-1