Program to implement the stack operations