X interview question

String Anagrams Palindrome