Yandex Interview Question

Implement queue using stacks.