Alarm.com Interview Question

Design a stack implementation based on an int array.