✅ ⟣ Java Solution ⟢
Code
# Code
```java []
class Solution {
    public boolean canConstruct(String s, int k) {
        int n = s.length();
        if(n < k) return false;
        else if(n == k) return true;

        int[] ct = new int[26];
        for(char ch : s.toCharArray()) {
            ct[ch-'a']++;
        }

        int oddct = 0;
        for(int i=0; i<26; i++) {
            if(ct[i]%2 != 0) oddct++;
        }

        return oddct <= k;
    }
}
```
['Java']