Anagram code kata solution