Update permutationCheck.java

 Thanks for advice from jyuan