Semtech Interview Question

Q] implement stack using array