Add Next Permutation solution.