there is a stack which is pushed with different size pancake.
the problem is how to sort this stack so that the largest pancake is on the bottom the smallest is on the top. The size of pancake is given by the integer.
for example
8
6
4
5
7
after sorting it will be
4
5
6
7
8
Note just use the template stack only