[LeetCode 31] Next Permutation [Java]