Pythagoras Triplet

My code is here :

I am getting all the test cases right except for the first one. Could someone please point out the mistake in the code?