Datadog interview question

leetcode easy/medium question like, word matching