Capgemini Engineering interview question

write program to biuld a stack