GlobalLogic interview question

Implement queue using stack