Stack

A real-world stack allows operations at one end only. For example, we can place or remove a card or plate from the top of the …