✅ Easy C++ Solution
Code\n\nclass Solution {\npublic:\n    int numOfPairs(vector<string>& nums, string target) {\n        int count = 0;\n        int n = nums.size();\n        for(
# Code\n```\nclass Solution {\npublic:\n    int numOfPairs(vector<string>& nums, string target) {\n        int count = 0;\n        int n = nums.size();\n        for(int i=0;i<n;i++)\n        {\n            for(int j=0;j<n;j++)\n            {\n                if(i == j)\n                {\n                    continue;\n                }\n                if(nums[i] + nums[j] == target)\n                {\n                    count++;\n                }\n            }\n        }\n        return count;\n    }\n};\n```
['C++']