Anonymous interview question

Solve Program: Reverse only the palindrome in a given sentence.