Remove us

Report a typo

You are given a MutableList of strings and an Integer in the input. Remove an element at the index of the specified integer.

Sample Input 1:

a b c d
2

Sample Output 1:

a b d
Write a program in Kotlin
fun solution(elements: MutableList<String>, index: Int): MutableList<String> {
// put your code here
}
___

Create a free account to access the full topic