Pregunta de entrevista de Orgzit

write an compressing algorithm for given text. [input] aabbbbheefggh