Tricky permutations

error

@nmaurya760
You forgot to attach the code

@nmaurya760
There was an issue in your code. You were not passing set m when you were calling your function but there was a set m in your function definition. That is not how it works. The arguments have to be constant across all function calls and function definition. Also printing the contents within the function would lead to multiple instances of the same string.

This is the updated code. Please revert in case you face any issues.

If my answer was able to clear your doubt, please mark the doubt as resolved.