Beginner Friendly[c++]
\nclass Solution {\npublic:\n    bool canConstruct(string s, int k) {\n        unordered_map<char,int>mp;\n        int counte=0,counto=0;\n        for(auto ch:s
```\nclass Solution {\npublic:\n    bool canConstruct(string s, int k) {\n        unordered_map<char,int>mp;\n        int counte=0,counto=0;\n        for(auto ch:s){\n            mp[ch]++;\n        }\n        for(auto it:mp){\n            if(it.second%2==0){\n                counte++;\n            }else{\n                counto++;\n            }\n        }\n        if(k>=counto&&s.length()>=k){\n            return true;\n        }else{\n            return false;\n        }\n        \n    }\n};\n```
[]