class Solution { public: int getLongestPalindrome(string A, int n) { // write code here int m=0; vector<vector<int>> dp(n+1,vector<int>(n+1,0)); for(int i=0;i<n;i++) { for(int j=0;j<n;j++) { if(A[i]==A[n-1-j]) { dp[i+1][j+1]=dp[i][j]+1; if(dp[i+1][j+1]>=m && i+j-dp...