Yandex interview question

Data Structures & Algos, CSS