Anagram reconstruction