@Kotlin
fun getPosition(str: String, list: List<String>): Int {
var position = 0
for (i in 0..list.indices) {
if (str == list[i])
position = i
}
return position
}
@Kotlin
fun getPosition(str: String, list: List<String>): Int {
var position = 0
for (i in 0..list.indices) {
if (str == list[i])
position = i
}
return position
}