Pythagoras Triplet Test Cases fail

Here’s the problem link and here’s the link to my approach. I am wondering why it isn’t passing all the test cases?

You are not handling case for the even properly.