Datadog Interview Question

Parse a stream of logs