Frage im Vorstellungsgespräch bei Stack Overflow

Simple coding task: write a compression algorithm (Run-length encoding)