Simple Code | C++
\nclass Solution {\npublic:\n    int numOfPairs(vector<string>& a, string target) {\n        int cnt = 0 ;\n        int n = a.size();\n        for(int i=0;i<n;i
```\nclass Solution {\npublic:\n    int numOfPairs(vector<string>& a, string target) {\n        int cnt = 0 ;\n        int n = a.size();\n        for(int i=0;i<n;i++)\n        {\n            for(int j=0;j<n;j++)\n            {\n                if(i!=j and (a[i]+a[j])==target)\n                    cnt++;\n            }\n        }\n        return cnt;\n    }\n};\n```
['C']