If I construct a tree and traverse it - 1, 2 pushed then one element popped for B->C/D. - so 1 element remaining
then 3, 4 pushed and a 5 is pushed because of A->B*C - so now 4 elements in the stack
again a 5 is pushed for A->B*C. So total 5 elements remaining.