LIFO principle
referencebeginnerA stack is Last-In-First-Out: the most recently added item is always the first one removed. Everything below it stays buried until it is.
Remember: LIFO means the last thing pushed is the first thing popped — picture a stack of plates, not a line of people.