anagrams problem using hash
Palindrome partitioning I