@Sachin Mittal 1 Sir , @GO Classes , @GO Classes Support , can you please just clarify if in option CD( was given then will be correct answer or not ? if not then please explain why .
@squirrel69 a*b( is given string now first a will be put in stack
a|*b( -→ we have to reduce a using it’s handle
D|*b( --→ from production D→ a|b
D*|b( -→ add one more character on a stack
C|b( → from C→ D* production
Cb |( → added one more character on top of stack
CD |( → from D→a|b
CC|( → from C→ D production
CC( | → last character is insert and hence after it’s insertion the stack content will be CC(
hope this will help you