Solve: String Times
Imported By: Geoffrey Challen
/ Version: 2021.4.0
Given a String
and a non-negative Int
, return a String
that is n copies of the original string.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.fun stringTimes(
input: String,
n: Int,
): String {
return ""
}