Question d’entretien chez DataWeave

write a palindrome, anagram program , explain the time and space complexity