Jet Interview Question

Compress aaabbbcccc to a3b3c4 recursively