Next Permutation — Finding the Next Smallest Bigger Number

Let’s assume an array: