https://maheepk.net/posts/generating-permutations-of-a-string-in-swift/
Generating permutations of a string in Swift - Maheep Kumar's Webspace