Banana!

Report a typo

You are given a MutableList of strings and a String in the input. Replace all occurrences of the given String in the MutableList with Banana.

Sample Input 1:

Sometimes you have to shake up your life
shake

Sample Output 1:

Sometimes you have to Banana up your life
Write a program in Kotlin
fun solution(strings: MutableList<String>, str: String): MutableList<String> {
// put your code here
}
___

Create a free account to access the full topic