Update Next Permutation by Kang Huang & Yan Zhao.java