@Prashant.Pethe top1= 7, top2=8(considering the array index starts from 0)
so top1=top2-1.
It's an array containing the elements 12,13,14,15,16,17,18,19,21 and 20 and top1 and top2 mark the top of the two stacks respectively where the 1st stack grows from left to right and the second one vice versa.