Run-length encoding

Sign in to test your solution.