Pregunta de entrevista de Datadog

not leetcode style more like concept implementation