Escreva uma função que converta uma string em uma abreviação com asteriscos. Se um caractere se repetir n vezes, converta-o em character*n.
to_star_shorthand("abbccc") ➞ "ab*2c*3"
to_star_shorthand("77777geff") ➞ "7*5gef*2"
to_star_shorthand("abc") ➞ "abc"
to_star_shorthand("") ➞ ""