No . of different char we can put at the position of the i and x - i
count ++ ; } ) ; if ( count == 0 ) return 0 ; else ans = ans * count ; se . sort ( ( a , b ) => a - b ) var val = se [ se . length - 1 ]