Solve: Middle Three
Imported By: Geoffrey Challen
/ Version: 2021.5.0
Given a String
of odd length, return the string length 3 from its middle,
so "Candy" yields "and".
The string length will be at least 3.
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 middleThree(input: String): String {
return ""
}