Cognizant interview question

Implement Stack.