Datadog Interview Question

Implement run-length encoding and decoding.