Domanda di colloquio di Datadog

2 straightforward coding problems, strings and graphs