correct checking code for Next_permutation.java