Anagram problem solve by hashmap