Snap interview question

Involves the use of a stack.