Arista Networks interview question

Implement a stack using arrays.