Alarm.com interview question

Design a stack implementation based on an int array.