Suppose the rule at the office is that the workers who arrive later will leave earlier. Stack data structure is appropriate to store the workers.
The stack data structure is a direct data structure that accompanies a principle known as LIFO( Last In First Out) or FILO( First In Last Out). Real- life exemplifications of a mound are a sundeck of cards, piles of books, piles of plutocrat, and numerous further.
A stack represents a sequence of objects or rudiments in a direct data structure format. The mound consists of a bounded bottom and all the operations are carried out on the top position.
Learn more about stack data structure:
brainly.com/question/15242038
#SPJ4