challenge 5: solve intermediate (anagrams) problem