Leoforce Interview Question

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