added 2 solutions anagram function