One test case is not getting cleared in Pythagoras triplet


link to the code

@Bhavya_Goel
You skipped a corner case.
for N < 3 , ans is -1;

in this code of we give 65 as input , will get 2112 and 2113 as output which is wrong. i think there is an error in logic as well

@Yuganshu
65x65 + 2112x2112 = 2113x2113