Wiley Interview Question

write program for operations of stack without using inbuilt functions