MIND CTI Interview Question

Simulate a stack