one test case is failing in it
Pythagoras Triplet
@Learning_bunny hey piyush your code is failing on the test case value if test case value is 1 then your code is giving garbage value please fix this error and your code will work properly.
i had mentioned it in main that if n equals to 0 or 1 or 2 thn print -1
done thankyou bhaiya