import java.util.*; public class Solution {     public int getLongestPalindrome(String A, int n) {         // write code here         b...