Data Semantics interview question

palindrome program ,sql basic to advance