LTM Limited Interview Question

write a program on stack