Cvent Interview Question

Write code to tell if a string is a palindrome. write code to tell if a string is an anagram