Datadog interview question

Write a program to parse logs and sort them into the appropriate bins.