If I am given a list of numbers from 1 to N, How do I find the next permutation of a given list?
For example:
lst = [2, 1, 4, 3]
the n