Create Next Permutation nlogn.java