/**
 * Modify each element of list1 by adding 's' at the end and return the index of the modified element in list2.
 */
fun modifyAndGetIndex(list1: MutableList<String>, list2: List<String>): Int {

    list1.forEachIndexed { index, _ -> list1[index] += "s" }

    var index = -1
    for (i in list2.indices) {
        if (list2[i] in list1) {
            index = i
            break
        }
    }

    return index
}
/**
 * Modify each element of list1 by adding 's' at the end and return the index of the modified element in list2.
 */
fun modifyAndGetIndex(list1: MutableList<String>, list2: List<String>): Int {
/**
 * Modify each element of list1 by adding 's' at the end and return the index of the modified element in list2.
 */
fun modifyAndGetIndex(list1: MutableList<String>, list2: List<String>): Int {

    list1.forEachIndexed { index, _ -> list1[index] += "s" }

    var index = -1
    for (i in list2.indices) {
        if (list2[i] in list1) {
            index = i
            break
        }
    }

    return index
}