#include <iostream> #include <string> using namespace std; pair<int, int> expandAroundCenter(string &s, int left, int right){ while(left >= 0 && right <= s.size() && s[left] == s[right]){ left--, right++; } return {left + 1, right - 1};...