What is stack? What are the different applications of stack? Explain stack operations with example.
1. Definition of Stack A Stack is a linear data structure that follows the principle of LIFO (Last In, First Out). - The element inserted last is removed first. - All insertions and deletions take p