Solve: Extra Front
Imported By: Geoffrey Challen
/ Version: 2021.5.0
Given a String
, return a new String
made of 3 copies of the first 2 chars of the passed String
. The String
may be any length. If there are fewer than 2 chars, use whatever is there.
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 extraFront(str: String): String {
return ""
}