Yandex interview question

Implement queue using stacks.