Yandex Interview Question

How to pick appropriate database for the given task?