Whatfix Interview Question

DSA Next Permutation coding question on notepad