Atlassian interview question

Write Python program that produces anagrams from input set of letters.