Pregunta de entrevista de Datadog

Leetcode standard exercise of ordering and filtering