Write a function repeatSymbol(str)
that repeats the characters of an input str
and returns a hyphen-separated string. The number of repetitions should depend on the character index. Each leading character on a new string must be uppercase.
Input: repeatSymbol('asd')
Output: A-Ss-Ddd