Easy Peasy
Code\n\nclass Solution {\npublic:\n    int maximumNumberOfStringPairs(vector<string>& words) {\n        int count=0;\n        int n=words.size();\n\n        for
# Code\n```\nclass Solution {\npublic:\n    int maximumNumberOfStringPairs(vector<string>& words) {\n        int count=0;\n        int n=words.size();\n\n        for(int i=0; i<n-1; i++){\n            string s1=words[i];\n\n            for(int j=i+1; j<n; j++){\n                string s2=words[j];\n\n                if(s1[0]==s2[1] and s1[1]==s2[0]) count++;   \n            }\n        }\n        return count;\n        \n    }\n};\n```
['C++']