結果 : next permutation function in java