To find lexicographically first palindromic string .
static string findPalindromicString ( string str ) { int len = str . Length ; int [ ] freq = new int [ MAX_CHAR ] ; countFreq ( str , freq , len ) ; if ( ! canMakePalindrome ( freq , len ) ) { return " No ▁ Palindromic ▁ String " ; }