Celonis interview question

Leetcode question about string processing System design question involving concurrency