BlackBerry interview question

How to implement stack using an array