EPAM Systems Interview Question

Event loop, special regex logic