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.
toStarShorthand("abbccc") ➞ "ab*2c*3"
toStarShorthand("77777geff") ➞ "7*5gef*2"
toStarShorthand("abc") ➞ "abc"
toStarShorthand("") ➞ ""