Verint interview question

reverse string function,palindrome