Pergunta de entrevista da empresa Instructure

Write a method that returns a compressed string or the original one if the compressed string is longer. For example the input of aabcccdde would return a2b1c3d2e1