Connecteam interview question

A question about using the stack data structure.