Atlassian Interview Question

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