Yandex Interview Question

Algorithms, data structure/ live coding