Stack is LIFO. Meaning whatever comes in Last will be the first to open. Last In First Out (LIFO). The following implementation is stack and min stack. Min stack is an implementation is a stack that supports push, pop, top, and retrieving the minimum element in constant time.
Review and give feedback if need !!