Meta interview question

Asked the next permutation problem.