Samsung Electronics Interview Question

Implement queue using stack