anagram second algo without space and number added -ve case