Pythagorean Triplet: Medium Programming Problem