Pergunta de entrevista da empresa Whatfix

DSA Next Permutation coding question on notepad