Stack

Problem Statement:

Visualize a Stack (LIFO). Perform operations Push, Pop, Peek step by step.

Operations: Push 10, Push 20, Push 30, Peek, Pop, Push 40

Step 0: Empty Stack.