Iterating till the entire Digit is read
char st = ' \x0000' ; while ( s [ i ] != ' ) ' && s [ i ] != ' ) ' ) { st = s [ i ] ; i = i + 1 ; } k . Add ( st ) ; } } int depth = 0 , flag = 1 ; int open = 0 , close = 0 ; foreach ( char i2 in k ) {