Given two strings and , count the number of tuples such that
- .
- .
- The -th character of to the -th character of , concatenated with the first character of to the -th character of , is a palindrome.
A palindrome is a string which reads the same backward as forward, such as "" or "".