Print the sequence
for ( int i = 0 ; i < n ; i ++ ) { if ( str . charAt ( i ) == str . charAt ( 0 ) ) System . out . print ( ' ( ' ) ; else System . out . print ( ' ) ' ) ; } return ; } } System . out . print ( " No " ) ; } }