If count of occurrence of characters is odd
if ( hash [ i ] % 2 == 1 ) { if ( ! f ) { res1 . append ( ( char ) i ) ; f = true ; } else { res3 . append ( ( char ) i ) ; } } } return ( res1 . toString ( ) + tmp . toString ( ) + res3 . toString ( ) ) ; }