Pregunta de entrevista de Datadog

Write a python function that count frequency bucket