Finished anagram code.