X Interview Question

1. String 'aaaabcccddd' return 'a3bc3d3'