All ChallengesLoading...
Not Solved

Repeat a word n times

Write a function that takes a word and an integer n, and returns the word repeated n times, separated by a hyphen.
Intermediate
sample input: "hello", 3 
sample output: hello-hello-hello
Loading...
Test Output: