Virtusa interview question

Write a code of string palindrome ?