Stack is another class of list interface that does all the operations on the top of the collection.
stack supports LIFO operation. last in first operation.
stack support some methods to do this operations. those are: 1-push: adds the element to the top of the stack. 2-pop: deletes the the top most element from the stack. 3-peek: returns data most elevate from the stack.