Meta Interview Question

compress a string