Pregunta de entrevista de Datadog

Some coding exercises, nothing too difficult.