Meta interview question

Make a palindrome algorithm? Tell it's complexity etc.