Given two strings \(A\) and \(B\), please find out the length of the longest common palindrome substring of \(A\) and \(B\). If \(A\) and \(B\) do not have a common palindrome substring, print out -1.
15011501
Given two strings \(A\) and \(B\), please find out the length of the longest common palindrome substring of \(A\) and \(B\). If \(A\) and \(B\) do not have a common palindrome substring, print out -1.
abababa
bababab
5