AAAAA | BBBBBB
Since word reads the same backwards and forwards, the middle digit must be A.
M
× × × × ×↓× × × × ×
so that even number of A's and B's are available for arrangement about middle position M in the above figure.
Take AABBB on one side of M (6th place) and then their image about M in a unique way
∴ The total number of required ways =5!2!.3!=10