Meta interview question

Run-length encoding problem