JAVA SOLUTION
class Solution {\n    public boolean canConstruct(String s, int k) {\n\t\n        int n = s.length();\n        \n        if(n<k)\n        {\n            return 
class Solution {\n    public boolean canConstruct(String s, int k) {\n\t\n        int n = s.length();\n        \n        if(n<k)\n        {\n            return false;\n        }\n        \n        HashMap<Character,Integer> map = new HashMap<>();\n        \n        for(int i=0;i<n;i++)\n        {\n            char c = s.charAt(i);\n            map.put(c,map.getOrDefault(c,0)+1);\n        }\n        \n        int ans = 0; \n        \n        for(Map.Entry<Character,Integer> e:map.entrySet())\n        {\n            int v = e.getValue();\n            \n            if(v%2!=0)\n            {\n                ans++;\n            }\n        }\n        \n        return ans<=k;\n    }\n}
['Java']