Allstate interview question

Define Stack using arrays and white board algorithms/problems