Keep hyper

Report a typo

You have a MutableList and you are implementing a method that removes all words which do not start with "hyper". Print the changed list in reverse order in main(), each element on a new line.

Please use MutableListIterator to solve this problem.

Sample Input 1:

hyper hello java hypersuper hypercat hyperskill skill

Sample Output 1:

hyperskill
hypercat
hypersuper
hyper
Write a program in Kotlin
fun processIterator(list: List<String>): List<String> {
// write your code
}

fun main() {
var list = processIterator(readln().split(" "))
// output the list
}
___

Create a free account to access the full topic