Wipro interview question

Write a program to implement a stack