Tecnotree Interview Question

Explain stacks in dsa with example