31. Next Permutation【Medium】

NoSuchKey