Transform a string by repeating each character a given number of times.
Constraints
Example
>>> repeat_chars("ab", 3)
'aaabbb'
>>> repeat_chars("hello", 2)
'hheelllloo'
>>> repeat_chars("abc", 0)
''
>>> repeat_chars("", 5)
''
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints