Kotlinlearncs.online LogoJava
Return to List

Solve: Mix String

Imported By: Geoffrey Challen
/ Version: 2021.7.0

Given two Strings, create a bigger string made of the first character of the first String, the first character of the second String, the second character of the first String, the second character of the second String, and so on. Any leftover chars should go at the end of the result.

fun mixString(
first: String,
second: String,
): String {
return "" // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: