Datadog interview question

Leetcode-like exercise comparing two strings.