Question d’entretien chez Datadog

2 straightforward coding problems, strings and graphs