/**
 * Given a list, indices, and values, update the elements at the specified indices with the provided values.
 *
 * @param lst The original list.
 * @param indices The indices at which the elements need to be updated.
 * @param values The values to be updated at the specified indices.
 * @return The updated list with elements changed at the specified indices.
 */
fun updateElements(lst: MutableList<Int>, indices: List<Int>, values: List<Int>): List<Int> {

    // Iterate over the indices and values lists simultaneously
    for ((index, value) in indices.zip(values)) {
        // Update the element at the current index with the corresponding value
        lst[index] = value
    }
    
    return lst
}
/**
 * Given a list, indices, and values, update the elements at the specified indices with the provided values.
 *
 * @param lst The original list.
 * @param indices The indices at which the elements need to be updated.
 * @param values The values to be updated at the specified indices.
 * @return The updated list with elements changed at the specified indices.
 */
fun updateElements(lst: MutableList<Int>, indices: List<Int>, values: List<Int>): List<Int> {
/**
 * Given a list, indices, and values, update the elements at the specified indices with the provided values.
 *
 * @param lst The original list.
 * @param indices The indices at which the elements need to be updated.
 * @param values The values to be updated at the specified indices.
 * @return The updated list with elements changed at the specified indices.
 */
fun updateElements(lst: MutableList<Int>, indices: List<Int>, values: List<Int>): List<Int> {

    // Iterate over the indices and values lists simultaneously
    for ((index, value) in indices.zip(values)) {
        // Update the element at the current index with the corresponding value
        lst[index] = value
    }
    
    return lst
}