Exercise 4: anagram