Lucid Imaging Interview Question

Run length encoding