solution #include<iostream> #include<string> using namespace std; const int maxn = 135; int flag[maxn] = { 0}; void printC(string s){ for(int i