Growable array based stack
We all know about Stacks also known as Last-In-First-Out(LIFO) structures. Stack primarily has two main operation namely push and pop, where push inserts an element at top and pop removes an element from top of the stack. Now, whenever an implementation of stack is considered its size is pre-determi