X644: Repeat string

Write a function called repeat(s, n) with two parameters, a String s and an int n. The routine should return a string with s repated n times.

Examples:

repeat("x",3) -> "xxx"

Your Answer:

Feedback

Your feedback will appear here when you check your answer.