Frage im Vorstellungsgespräch bei Wells Fargo

Design the algorithm to generate anagrams for a string.