If closing bracket , i . e . , str [ i ] = ' ) ' && stack is not empty then mark both " open ▁ & ▁ close " bracket indexs as 1 . Pop the previous opening bracket 's index
if ( stk . Count != 0 ) { BCP [ i ] = 1 ; BOP [ stk . Peek ( ) ] = 1 ; stk . Pop ( ) ; }