Print the new string
for ( int i = 0 ; i < n ; i ++ ) { if ( str [ i ] == str [ n - 1 ] ) Console . Write ( ' ) ' ) ; else Console . Write ( ' ( ' ) ; } return ; } else { for ( int i = 0 ; i < n ; i ++ ) {