anagram second algo without space and number