You are given 2 strings A and B.
Let F(S) denote a substring of S, possibly empty.
Let W=f(A)+f(B), (′+′=concatenation)
Find the maximum possible length of such a string W which is also a Palindrome.
Note
Input Format
Output Format
Constraints
The maximum length palindromic string W we can get is bdb. Hence answer is 3.