Kotlinlearncs.online LogoJava
Return to List

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.

fun right2(input: String): String {
return "" // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: