Find all possible permutations of a word with distinct letters recursively

My mind is not working on this problem. Thus I seek help

Can you share an example or two of words and their possible answers?

perhaps Google Gemini can help out ?

A word is no longer itself if you change its letters around, so isn’t the answer always 1? :thinking:

1 Like