✅Easiest Basic Beginner C++ Solution | Only For loop | No advance Logic🏆
Solution:\n\n\nclass Solution {\npublic:\n    vector<int> findIntersectionValues(vector<int>& nums1, vector<int>& nums2) {\n        int count1 = 0;\n        vec
**Solution:**\n\n```\nclass Solution {\npublic:\n    vector<int> findIntersectionValues(vector<int>& nums1, vector<int>& nums2) {\n        int count1 = 0;\n        vector<int> ans;\n\n        for (int i = 0; i < nums1.size(); ++i) {\n            for (int j = 0; j < nums2.size(); ++j) {\n                if (nums1[i] == nums2[j]) {\n                    count1++;\n                    break;\n                }\n            }\n        }\n        ans.push_back(count1);\n\n        int count2 = 0;\n        for (int i = 0; i < nums2.size(); ++i) {\n            for (int j = 0; j < nums1.size(); ++j) {\n                if (nums2[i] == nums1[j]) {\n                    count2++;\n                    break;\n                }\n            }\n        }\n        ans.push_back(count2);\n\n        return ans;\n    }\n};\n```
['Array', 'C', 'Counting']