Update Permutation Sequence by Kang Huang & Yan Zhao [recursion].java