Five Palindromes e-olymp

Problem from past contest
Any hint or idea on how to solve this question?