Concept Flow - Stack operations (push, pop, peek)
Start
Check Operation
Push?
Yes→Add item on top
Update top pointer
Done
Pop?
Yes→Remove item from top
Update top pointer
Return removed item
Peek?
Yes→Look at top item
Return top item
The stack operation flow checks which operation is requested: push adds an item on top, pop removes the top item, and peek returns the top item without removing it.