Condition For Invertible Function Example In Java