Leoforce interview question

write code for all the operations that can perform on stacks.