Update isPermutation.java