Amazon Interview Question

run length encoding + decoding