Next permutation


passing only one test case , what is the error

Hi @shiniagarwal25

The code in the link is passing all the test cases.