Hey it would atmost require 25! permutations to be printed in worst case

And this much no of operations cannot be computed in 1sec of time…

yeah you are right , for this question solve assuming n<=10, i will have it corrected

ok…