Sivisussuseqarnerpa kingorna C++-imi naleqqussuuvoq:

Tik nipilersorneqarpoq string s, taanna kingornaallu oqaluttuassaq, ullormiut palindroomip naalagaaffiinik allatuleriorneqassap ilinniartitsisut. 
Kingorna kingusaat qalipataa, ukiuni saniatigut "Aa" palindroomik ilinniarneq.
ilinniarneq pissartanngorneq qatanngutitsoq C++-imi: 

```
int longestPalindrome(string s) {
    int freq[52] = {0}; 
    for(char c : s) {
        if(c >= 'a' && c <= 'z') freq[c - 'a']++; 
        else freq[c - 'A' + 26]++; 
    }
    bool oddFound = false;  
    int length = 0;  
    for(int i = 0; i < 52; i++) {
        if(freq[i] % 2 == 0) length += freq[i];  
        else { 
            length += freq[i] - 1;
            if(!oddFound) {  
                length++;  
                oddFound = true;  
            }
        }
    }
    return length;
}
```