Microsoft Interview Question

Run-length Encoding Algorithm