Simple JAVA Solution
-Count all odd number of characters in string and check whether they are less or equal to k\n\npublic boolean canConstruct(String s, int k) {\n\t\tif(s.length()
-Count all odd number of characters in string and check whether they are less or equal to k\n```\npublic boolean canConstruct(String s, int k) {\n\t\tif(s.length()<k) {\n\t\t\treturn false;\n\t\t}\n\t\tHashMap<Character,Integer> map=new HashMap<>();\n\t\tfor(char c:s.toCharArray()) {\n\t\t\tmap.put(c,map.getOrDefault(c, 0)+1);\n\t\t}\n\t\tint odd=0;\n\t\tfor(int count:map.values()) {\n\t\t\tif(count%2==1) {\n\t\t\t\todd++;\n\t\t\t}\n\t\t}\n\t\treturn odd<=k;\n        \n    }\n```
['Java']