Capgemini Engineering interview question

Stack structure, push and pop functions