Function to print the non - palindromic string if it exists , otherwise prints - 1
static void findNonPalinString ( char [ ] s ) { int [ ] freq = new int [ 26 ] ; int flag = 0 ; for ( int i = 0 ; i < s . Length ; i ++ ) {