Solve: Right 2
Imported By: Geoffrey Challen
/ Version: 2021.6.0
Given a non-null
String
, return a version rotated right 2 where the last 2 characters are moved to the start.
The String
length will be at least 2.
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 right2(input: String): String {
return ""
}