Semtech interview question

Q] implement stack using array