Consider a single array A[0.... n - 1] is used to implement two stacks. Two stacks grows from opposite ends of the array Variables top1 and top2 points to the location of the top most element in each of the stacks with initial values of -1 and n respectively and top1 < top2 always. If certain push and pop operations are performed at either end, then which of the following represents the number of elements are present in the array at any time?
10 | 20 | 40 | 30 |