Bloomberg interview question

basic data structure, implement stack with array