If current character is a closing bracket , pop from stack . If stack is empty , then this closing bracket is required bracket .
else if ( expression [ i ] == ' ] ' ) { st . Pop ( ) ; if ( st . Count == 0 ) { Console . Write ( expression + " , ▁ " + index + " : ▁ " + i + " STRNEWLINE " ) ; return ; } } }