Yandex Interview Question

To create an algorithm for designing an automatic discionary