Presentation engine (Yandex interview)